package org.micro.rbac.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.micro.rbac.core.result.R;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 认证接口
 *
 * @author hongsir
 * @since 2024/5/6
 **/
@Slf4j
@Validated
@RestController
@Tag(name = "认证接口")
@RequestMapping("/auth")
public class AuthController {

    @GetMapping("/img/code")
    @Operation(summary = "图片验证码")
    public R<Void> imgCode() {
        return R.ok("服务正在加载...");
    }

}
